@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    <div class="card-header">修改预定</div>

                    <div class="card-body">
                        <order-component
                            order="{{ $order->id }}"
                            begin="{{ $order->availability->from }}"
                            end="{{ $order->availability->to }}"
                            typeid="{{ $order->availability->room_type_id }}"
                            today="{{ $today }}"
                            qurl="{{ route('searchRoomTypes') }}"
                            purl="{{ route('changeOrder') }}"
                            csrf="{{ csrf_token() }}"
                        ></order-component>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
